
//main.ts/main.js
import store from './store'
import { Buffer } from "buffer";
import process from "process";
window.process = process;
window.Buffer = Buffer;


import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import piniaStore from './store/pinia'
// indexedDB方法
import '@/utils/indexedDB'
import ElementPlus from 'element-plus'
// 自定义封装全局方法
import GlobalProperties from "@/utils/globalProperties.js";
// 全局组件
import GlobalComponent from '@/utils/globalComponent'
// 自定义全局指令
import Directive from "@/utils/directive.js";
import 'element-plus/theme-chalk/src/index.scss'
import 'default-passive-events'
import '@/style/index.scss'
// 将自动注册所有组件为全局组件
import DataVVue3 from '@kjgl77/datav-vue3'
const app = createApp(App)
app.use(ElementPlus, { size: 'small', zIndex: 3000 })
app.use(GlobalProperties)
app.use(GlobalComponent)
app.use(Directive)
app.use(piniaStore)

app.use(router)
app.use(store)
app.use(DataVVue3)

app.mount('#app')